package admin

import (
	"github.com/gin-gonic/gin"
	"jwgin/model/mysql"
	"jwgin/service"
)

type AdminUser struct{}

func (l *AdminUser) Routers(Router *gin.RouterGroup) (R gin.IRoutes) {
	Router.POST("admin", l.get)
	return Router
}

func (AdminUser) get(c *gin.Context) {
	userLIst := &[]mysql.AdminUser{}
	service.G.Find(userLIst)
	RespSucc(c, userLIst)

}
